#ifndef _PROGRESS_BAR_H_
#define _PROGRESS_BAR_H_

#define FAIL      (0)
#define SUCCESS   (1)

#define BAR_TAIL      "\033[0m"
#define BAR_RED       "\033[40;31m"
#define BAR_GREEN     "\033[40;32m"
#define BAR_YELLOW    "\033[40;33m"
#define BAR_BLUE      "\033[40;34m"

#define NOMAL   0
#define RED     1
#define GREEN   2
#define YELLOW  3
#define BLUE    4

#define SETTING_SIGN    '>'
#define SETTING_LENGTH  (50)
#define LENGTH_MAX      (100)
#define LENGTH_MIN      (10)
#define SETTING_SPEED   (5)
#define SPEED_MAX       (10)
#define SPEED_MIN       (0)
#define SETTING_COLOR   (0)
#define COLOR_MAX       (4)
#define COLOR_MIN       (0)

struct progress_bar{
	char sign;
	int length;
	int speed;
	int color;
};

extern int progress_bar_init(void);
extern int progress_bar_run(void);
extern void progress_bar_reset(void);


#endif
